The Interpreter.StatusUpdated event appears to return a first message with a line number of 0, yet all the other messages returned use line numbers of 1 to LastLineNumber. Is the message with LineNumber=0 a "first-status" status that is returned at the beginning
of every Interpreter.Interpret() call and appears before any gcode lines are actually run?
I am attempting to use the StatusUpdated event to select the line in a GCode file display that is currently running on the Interpreter. Realizing that the OS is hardly realtime, is there some time discrepency/caching going on with the raising of events from
the KFlop? If I run a series of short gcode commands totaling about 3 seconds of motion, the status messages for all lines have returned in less than a second--long in advance of the lines actually being run.
However, if I run a sequence of longer GCode commands, each taking 15 seconds, the StatusUpdated events returns nearly 3-6 seconds *after* the appropriate line has begun running.
In all cases, the very first status event for line 1 is always returned at the very start of line 1 running. The inconsistencies only appear for lines after line 1.
There is no code (on my end) that might be hanging--the events can notify me the instant they are raised. Even allowing for non-realtime performance, the delays seem very long. Is there another explanation?
sam marrocco | chief technical officer
ringside.cutters.picnic.moonlink
248 548 2500 w
248 910 3344 c
ringsidecreative.com